package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 语音文件表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {
    @Id
    private ObjectId id;//主键

    private Long userId; //用户id
    private Long collectUserId; //拾取用户id
    private String soundUrl;//语音地址
    private Integer collect = 0;//是否被拾取 (0 没拾取 1拾取)
    private Long created; //创建时间
}
